package com.schoolcloud.social.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.schoolcloud.common.model.PageDTO;
import com.schoolcloud.social.entity.SocPost;
import com.baomidou.mybatisplus.extension.service.IService;
import com.schoolcloud.social.query.PostQuery;

import java.util.List;


/**
* @author hongmizfb
* @description 针对表【soc_post】的数据库操作Service
* @createDate 2025-02-10 16:17:19
*/
public interface SocPostService extends IService<SocPost> {

    void modifyPost(SocPost socPost);

    Page<SocPost> getMpPostPage(PostQuery query);

    PageDTO<SocPost> getPostPage(PostQuery query);

    Long getUserPostCount(String userId);

    Long getPostCountByBardId(String bardId);

    /**获取用户发布帖子列表
     * @param userId 用户id
     * @return {@link List }<{@link SocPost }>
     */
    List<SocPost> getUserPostList(String userId);
}
